﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<BGCMS.Models.Child>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Börn
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="leftside">
        <h2>
            Barnið mitt</h2>
        <ul>
            <li>
                <%: Html.ActionLink("Skrá barn", "CreateChild", "Child") %></li>
        </ul>
    </div>
    <div id="children">
        <h2>
            Upplýsingar um börn</h2>
        <p>
            Veldu það barn sem þú vilt skoða nánar</p>
        <ul>
            <% foreach (var c in Model)
               { %>
            <li>
                <%: Html.ActionLink(c.Name, "Child", new { id = c.ID }) %></li>
            <% } %>
        </ul>
    </div>
</asp:Content>